package vista;

import java.awt.EventQueue;

import javax.swing.JDialog;
import java.awt.FlowLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.GridBagLayout;
import javax.swing.BoxLayout;
import net.miginfocom.swing.MigLayout;
import javax.swing.JButton;

public class PantallaAnhadirContacto extends JDialog {
	private JTextField textField;
	private JTextField textField_1;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					PantallaAnhadirContacto dialog = new PantallaAnhadirContacto();
					dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
					dialog.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the dialog.
	 */
	public PantallaAnhadirContacto() {
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new MigLayout("", "[][][][grow]", "[][][][][][][][]"));
		
		JLabel lblNombre = new JLabel("Nombre");
		getContentPane().add(lblNombre, "cell 1 1");
		
		textField = new JTextField();
		getContentPane().add(textField, "cell 3 1,alignx left");
		textField.setColumns(10);
		
		JLabel lblNmero = new JLabel("N\u00FAmero");
		getContentPane().add(lblNmero, "cell 1 3");
		
		textField_1 = new JTextField();
		getContentPane().add(textField_1, "cell 3 3,alignx left");
		textField_1.setColumns(10);
		
		JButton btnAadir = new JButton("A\u00F1adir");
		getContentPane().add(btnAadir, "cell 1 5");
		
		JButton btnLimpiar = new JButton("Limpiar");
		getContentPane().add(btnLimpiar, "cell 2 5,alignx left");
		
		JButton btnVolver = new JButton("Volver");
		getContentPane().add(btnVolver, "cell 3 5");

	}

}
